package com.laiketui.order.api.params.pay;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laiketui.domain.vo.MainVo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

@Setter
@Getter
@ToString
public class BalancePayParams extends MainVo implements Serializable {

    @NotBlank(message ="母单号不能为空")
    private String orderParentNo;

    /**
     * 线下付款银行账号
     */
    private String offlinePayAccount;

    /**
     * 线下付款支行
     */
    private String offlinePayBank;

    /**
     * 线下付款时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date offlinePayTime;

    /**
     * 付款凭证
     */
    private String offlinePayImg;

    /**
     * 线下支付类型 1银行转账
     */
    private Integer offlinePayType;

    /**
     * 是否不使用余额 默认false 总后台汇款时
     */
    private boolean notUseAmount = false;

}
